package cn.org.xiaosheng.client.config;

import cn.org.xiaosheng.client.manager.RpcClientManager;
import cn.org.xiaosheng.client.proxy.ClientProxy;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author XiaoSheng
 * @date 2024/8/22 下午5:34
 */
@Configuration
public class RpcClientManagerConfig {

    @Bean
    public RpcClientManager rpcClientManager() {
        return new RpcClientManager();
    }

    @Bean
    public ClientProxy clientProxy() {
        return new ClientProxy(rpcClientManager());
    }

}
